package com.uenpay.util.net.retrofit;

/**
 * Created by PS on 2016/5/16.
 */
public class UenException extends RuntimeException {

    private int errorCode = 0;
    private String codeStr;

    public UenException(String errorMsg) {
        super(errorMsg);
    }

    public UenException(String errorMsg, int code) {
        super(errorMsg);
        errorCode = code;
    }

    public UenException(String errorMsg, String code) {
        super(errorMsg);
        codeStr = code;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

}
